package ch1;

import java.util.Scanner;

public class Zuoye03096 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入一个数");
        int a = scan.nextInt();
        int sum = a;
        int i = 0;
        int b = 0;
        while (sum != 0) {
            i = sum % 10;
            sum = sum / 10;
            b = b * 10 + i;
        }
        if (b == a) {
            System.out.println("这个数是回文数");
        } else {
            System.out.println("这个数不是回文数");
        }
    }
}
